package com.zhou.test.config;

import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.text.SimpleDateFormat;

/**
 * @CiassName JacksonConf
 * @Description TODO
 * @Author ZhouFeiHong
 * @Date 2021/9/510:28
 * @Version 1.o
 **/
@Configuration
public class JacksonConf {
    @Bean
    public ObjectMapper getObjectMapper() {
        ObjectMapper objectMapper = new ObjectMapper();
        objectMapper.setDateFormat(new SimpleDateFormat("yyyy-MM-dd HH:mm:SS" ) );
        return objectMapper;
    }
}
